<?php
namespace app\models;

use yii\db\ActiveRecord;

/**
 * 系统消息
 *
 * Class SystemMessage
 * @package app\models
 *
 * @property integer $id
 * @property integer $time
 * @property string $title
 * @property string $content
 */
class SystemMessage extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['time', 'title', 'content'], 'required'],
            ['title', 'string', 'max'=>256],
        ];
    }
}
